<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <%@include file="../../common/include_list_head.jsp" %>
</head>
<body>
<div id="scrollContent">

    <s:if test="actionErrors.size()>0 || actionMessages.size()>0 || fieldErrors.size()>0">
        <div id="SystemErrorMessage">
            <s:actionerror/>
            <s:actionmessage/>
            <s:fielderror/>
        </div>
    </s:if>

    <s:form theme="simple" name="ysform">
        <s:hidden name="pager.formname" value="ysform"/>
        <s:hidden name="pager.currentPageno" id="yspager_currentPageno"/>
    </s:form>

    <div id="userRoleMenuButton">
                <button onclick="openEntity()"><span class="icon_add">新增</span></button>
                <button onclick="doModify()"><span class="icon_edit">修改</span></button>
                <button onclick="doUniChangeState(1,this)"><span class="icon_ok" title="">启用</span></button>
                <button onclick="doUniChangeState(0,this)"><span class="icon_no" title="">禁用</span></button>
        <s:hidden name="changestate_parms" id="changestate_parms"
                  value="%{@com.apexedu.util.crypto.CipherUtil@encryptByAES('entityName:t_db;idName:wid')}"/>
    </div>
    <div>
        <table class="tableStyle" style="width:100%;">
            <tr>
                <th width="3%"></th>
                <th nowrap="nowrap" width="20%" align="center">名称英文缩写</th>
                <th nowrap="nowrap" width="27%" align="center">数据源名称</th>
                <th nowrap="nowrap" width="30%" align="center">业务系统连接地址</th>
                <th nowrap="nowrap" width="20%" align="center">状态</th>
            </tr>
            <s:iterator value="resultData">
                <tr>
                    <td align="center"><s:checkbox id="%{wid}" name="selectNode" fieldValue="%{wid}"/></td>
                    <td nowrap="nowrap" align="center">
                        <a href="javascript:openEntity('<s:property value="wid"/>')"><font color="blue"><s:property
                                value="code"/></font></a>
                    </td>
                    <td nowrap="nowrap" align="center"><s:property value="name"/></td>
                    <td nowrap="nowrap" align="center"><s:property value="link"/></td>
                    <td nowrap="nowrap" align="center"><s:if test="state==1">启用</s:if><s:else>禁用</s:else></td>
                </tr>
            </s:iterator>
        </table>
    </div>
</div>
</body>
</html>
